var mongoose = require('mongoose');
var db = require('../index').db;

var Schema = new mongoose.Schema({
    phone: Number,
    date  : {type: Date, default: Date.now},
    lottery: {type: Boolean, default: false}
});


module.exports = db.model('user', Schema, 'user');